package com.xuecheng.learning.client;

import com.xuecheng.framework.domain.course.response.TeachplanMediaPub;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
@FeignClient(value = "XC-SEARCH-SERVICE")
public interface SearchClient {
    @GetMapping("/search/findMedia/{teachplanId}")
    List<TeachplanMediaPub> findMedia(@PathVariable("teachplanId") String teachplanId);
}
